fix: persist lifecycle backtests for drift checks - #90
Conversation
🤖 Codex PR Review✅ Merge allowed: repeated primary findings were cleared by independent Codex arbitration ⚖️ Codex Review Arbitration✅ clear: 🚫 Blocking IssuesThese primary findings were cleared by independent Codex arbitration: 1. 🟠 [HIGH] Logic in
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f4b226dd67
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
2ffd31b to
e024234
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2ffd31bb2f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
189e3f8 to
4ebc4fd
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4ebc4fd3b5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
4ebc4fd to
c777396
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 38e13e39af
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Codex <noreply@openai.com>
949094e to
dd5eaec
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dd5eaecfe5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if int(synthetic_days) < min_history_days: | ||
| raise ValueError(f"synthetic_days must be >= {min_history_days} for profile={params!r}") | ||
| return _runner_synthetic_market_history(days=int(synthetic_days)) |
There was a problem hiding this comment.
Reject under-warmed synthetic histories
When callers set --synthetic-days to a value that is at least min_history_days but below the runner's warm-up floor, this helper now materializes exactly that short synthetic DataFrame and passes it as market_history, so HkEtfRotationBacktestRunner.run() no longer expands it with max(synthetic_days, min_history_days + 400). For example, --synthetic-days 260 passes this check and can persist an all-cash or severely under-warmed baseline; use the new MIN_SYNTHETIC_DAYS floor or preserve the runner's expansion before saving lifecycle backtests.
Useful? React with 👍 / 👎.
Summary
Validation
PYTHONPATH=/Users/lisiyi/Projects/_worktrees/quant_p0/QuantPlatformKit/src python3 -m pytest -q tests/test_drift_workflow_config.py tests/test_run_walk_forward_backtest.pyDependency
main